<?php
namespace app\admin\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: HuangLuSen
 * Date: 2017/5/4
 * Time: 19:36
 */
class Classify extends Validate
{
    protected $rule = [
        'title'  =>  'require',
//        'code'  =>  'unique:Classify'
    ];
    protected $message =[
        'title.require'=>'类别不能为空',
//        'name.unique'=>'来源已存在',
//        'code.require'=>'公司简码不能为空',
//        'code.unique' =>'公司简码不能重复',
    ];
}